<include file="public@head_top"/>
<include file="public@member_top"/>
</head>
<body class="bgeee">
<include file="public@head"/>
<style>
.order-goods td {
  background: #FFF;
  line-height: 22px;
}
.order-goods a{ text-decoration:none!important;}
.order-goods td img{ width:50px; height:50px; vertical-align:top; float:left; margin-right:10px;}
@media (max-width: 991px) {
	.rightmain .tab-content{ background:none; padding-top:0; padding-bottom:0;}
}
</style>

<div class="wrap clearfloat tc-main">
	<div class="row">
    
        <div class="col-lg-3 leftnav">
            <include file="public@usernav" />
        </div>
        
		<div class="col-lg-9 rightmain">

                <div class="card-header usertitle">
                    <ul class="nav nav-tabs card-header-tabs">
                      <li class="nav-item">
                        <a class="nav-link active" href="#one" data-toggle="tab"><i class="fa fa-list-ul"></i> 订单列表</a>
                      </li>
                    </ul>
                  </div>
                  
                <div class="tab-content usercontent st-tableStyleBlock">
                    <div class="tab-pane active" id="one">
                        
                        <div class="st-x-showpc">
                        <div class="st-x-tablerespon">
                        <table class="table table-bordered table-striped st-tablelist3">
								<thead>
									<tr>
										<th><notempty name="configinfo['supplierok']">店铺名<else/>订单号</notempty></th>
										<th width="150">当前状态</th>
                                        <th width="150">订单金额</th>
                                        <th width="200" class="st-listbox2">下单时间</th>
										<th width="100">操作</th>
									</tr>
								</thead>
								<tbody>
									<foreach name="orderlist" key="key" item="vo">
									<tr>
										<td class="st-listbox2"><a href="/list109-cn.html?act=member&type=detail&order_id={$vo.id}" style="text-decoration:none;">
                                        <if condition="$vo['integralok'] eq 1"><font class="status-text-red">[积分兑换]</font></if>
										<notempty name="configinfo['supplierok']">{$vo.shop_name}<else/>{$vo.post_title}</notempty></a></td>
										<td class="status-text-yellow">{$vo.orderstatus}</td>
                                        <td class="st-listbox2">
                                        <if condition="$vo['integralok'] eq 1">{$vo.integralprice}积分+￥{$vo.price}<else>￥{$vo.price}</if>
                                        </td>
                                        <td class="st-listbox3 st-xs-order1 xm-status-text-gray">{:date('Y-m-d H:i:s',$vo.create_time)}</td>
										<td class="st-boxcenter">
											<a href="/list109-cn.html?act=member&type=detail&order_id={$vo.id}" class="listaco">查看</a>
										</td>
									</tr>
                                    <tr>
                                      <td colspan="6" class="st-listbox3 st-nostyle">
                                            <div class="order-goods">
                                                <table class="st-tablelist3 st-wid100">
                                                  <thead>
                                                    <tr style="background:#fff;">
                                                      <th class="st-listbox1 st-fonn">商品名称</th>
                                                      <th width="120" class="st-listbox1 st-fonn">价格</th>
                                                      <th width="120" class="st-listbox1 st-fonn">赠送积分</th>
                                                      <th width="80" class="st-listbox1 st-fonn">数量</th>
                                                    </tr>
                                                  </thead>
                                                  <tbody>
                                                  <foreach name="vo.ordergoodslist" key="keyo" item="voo">
                                                    <tr>
                                                        <td class="st-listbox3">
                                                        <a href="{:cmf_url('portal/Article/index',array('id'=>$voo['listid'],'cid'=>$voo['listcatid']))}" target="_blank">
                                                        <empty name="voo.img_thumb">
                                                            <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                                                 alt="{$voo.post_title}">
                                                            <else/>
                                                            <img src="{:cmf_get_image_url($voo.img_thumb)}"
                                                                 alt="{$voo.post_title}">
                                                        </empty>
                                                        <p>{$voo.goods_name}</p>
                                                        <p>
                                                            <foreach name="voo.goods_attr_arr" key="k" item="v">
                                                            <span style="color:#888;">{$k}：{$v} | </span>
                                                            </foreach>
                                                          </p> 
                                                          </a>
                                                        </td>
                                                    <td>￥{$voo.price}</td>
                                                    <td>{$voo.giveintegral} 积分</td>
                                                    <td>{$voo.number}</td>
                                                  </tr>
                                                  </foreach>
                                                  </tbody>
                                                </table>
                                              </div>
                                              <if condition="$vo['postdesc']">
                                              	  <div class="st-texr st-mt10 st-col6">订单备注：{$vo.postdesc}</div>
                                              </if>
                                        </td>
                                     </tr>
									</foreach>
								</tbody>
							</table>
                            </div>
                            </div>
                            <div class="st-x-showmobile">
                            	<div class="st-titleBlock" style="margin-left:-10px; margin-right:-10px;">
                                  <div class="st-cardBox">
                                    <dl class="st-clearfix">
                                      <php>$status = $_MGPC_GET[status] ? $_MGPC_GET[status] : 0;</php>
                                      <dt class="st-dt" style="width:25%;"><a href="/list109-cn.html?act=member&status=0" class='<eq name="status" value="0">st-on</eq>'><i class="fa fa-modx"></i> 全部订单</a></dt>
                                      <dt class="st-dt" style="width:25%;"><a href="/list109-cn.html?act=member&status=1" class='<eq name="status" value="1">st-on</eq>'><i class="fa fa-sort-amount-asc"></i> 待支付</a></dt>
                                      <dt class="st-dt" style="width:25%;"><a href="/list109-cn.html?act=member&status=2" class='<eq name="status" value="2">st-on</eq>'><i class="fa fa-list-ul"></i> 待发货</a></dt>
                                      <dt class="st-dt" style="width:25%;"><a href="/list109-cn.html?act=member&status=3" class='<eq name="status" value="3">st-on</eq>'><i class="fa fa-truck"></i> 待收货</a></dt>
                                    </dl>
                                  </div>
                                </div>
                                <foreach name="orderlist" key="key" item="vo">
                                <div class="st-dataBlock orderlist st-baccf st-padtb10 st-borr5">
                                  <div class="st-headBox st-borb st-padtb10 st-clearfix">
                                    <div class="st-leftBox">
                                        <if condition="$vo['integralok'] eq 1"><font class="xm-status-text-red">【积分兑换】</font></if>
										<notempty name="configinfo['supplierok']">{$vo.shop_name}<else/>{$vo.post_title}</notempty></a>
                                    </div>
                                    <div class="st-rightBox xm-status-text-yellow">{$vo.orderstatus}</div>
                                  </div>
                                  <foreach name="vo.ordergoodslist" key="keyo" item="voo">
                                  <div class="st-mainBox st-mt10 st-pb10 st-lin15">
                                    <ul class="st-flexBox">
                                      <li class="leftinfo st-wid80">
                                      	<a href="{:cmf_url('portal/Article/index',array('id'=>$voo['listid'],'cid'=>$voo['listcatid']))}" target="_blank">
                                            <empty name="voo.img_thumb">
                                                <img src="__TMPL__/public/assets/images/default-thumbnail.png"
                                                     alt="{$voo.post_title}">
                                                <else/>
                                                <img src="{:cmf_get_image_url($voo.img_thumb)}"
                                                     alt="{$voo.post_title}">
                                            </empty>
                                            <p class="st-titItem52">{$voo.goods_name}</p>
                                            <p class="st-fon12">
                                                <foreach name="voo.goods_attr_arr" key="k" item="v">
                                                <span style="color:#888;">{$k}：{$v} | </span>
                                                </foreach>
                                              </p> 
                                              </a>
                                      </li>
                                      <li class="rightinfo st-wid20 st-texr st-mt20">
                                        <p>￥{$voo.price}</p>
                                        <p class="st-fon12">{$voo.giveintegral} 积分</p>
                                        <p class="st-fon12">x{$voo.number}</p>
                                      </li>
                                    </ul>
                                    <p class="st-texr st-mt10">
                                    共<font class="xm-status-text-red">1</font>个商品 实付金额:
                                    <font class="xm-status-text-red">
                                    <if condition="$vo['integralok'] eq 1">{$vo.integralprice}积分 + ￥{$vo.price}<else>￥{$vo.price}</if></font>
                                    </p>
                                    <if condition="$vo['postdesc']">
                                          <div class="st-texr st-mt5 st-col6 st-fon12">订单备注：{$vo.postdesc}</div>
                                      </if>
                                    <p class="st-texr st-mt10 st-bort st-pt10">
                                    	<a href="/list109-cn.html?act=member&type=detail&order_id={$vo.id}" class="st-buttBox st-xd-fon12" style="padding:3px 12px;">查看订单</a>
                                    </p>
                                  </div>
                                  </foreach>
                                </div>
                                </foreach>
                            </div>
							<div class="pagination"><page/></div>
                        
                    </div>
                </div>
                
        </div>
        
    </div>
</div>
<!-- /container -->

<include file="public@footer"/>
<include file="public@member_scripts"/>
</body>    
</html>